package com.easyCms.base.entity;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.google.gson.annotations.Expose;

@Entity
@Table(name = "bs_static_type")
public class BsStaticType extends BaseEntity {
	@Expose
	private String code;
	@Expose
	private String name;
	@Expose
	private String description;

	@OneToMany(cascade = CascadeType.PERSIST, fetch = FetchType.LAZY, mappedBy = "staticType")
	private List<BsStaticData> staticDatas = new ArrayList<BsStaticData>();

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public List<BsStaticData> getStaticDatas() {
		return staticDatas;
	}

	public void setStaticDatas(List<BsStaticData> staticDatas) {
		this.staticDatas = staticDatas;
	}

}